/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package Model;

import java.io.Serializable;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.SequenceGenerator;
import javax.persistence.Table;

/**
 *
 * @author Thiago
 */
@Entity
@Table(name = "marca")
@SequenceGenerator(name="sequencia", sequenceName="marca_idmarca_seq")
public class MarcaModel implements Serializable {

    private int idmarca;
    private String descricao;

    public MarcaModel() {
    }

    @Id
    @GeneratedValue(strategy=GenerationType.SEQUENCE,generator="sequencia")

    public int getIdmarca() {
        return idmarca;
    }

    public void setIdmarca(int idmarca) {
        this.idmarca = idmarca;
    }

    public String getDescricao() {
        return descricao;
    }

    public void setDescricao(String descricao) {
        this.descricao = descricao;
    } 
}
